<?php 
    session_start();
    
    if(!isset($_SESSION['myusername'])){
        header("location:index.php");
    }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Brops Dox Dashboard</title>
        <link href="styles/styles.css" rel="stylesheet" type="text/css" />

    </head>

    <body>
        <div id="mainWrap">
            <div id="mainPanel">
                <div id="menu">
                    <ul>
                        <li><a href="#"><span>Hello, <?php echo $_SESSION['myusername']; ?></span></a></li>
                        <li><div class="blank"></div></li>
                        <li><a href="dashboard.php"><span>Dashboard</span></a></li>
                        <li><div class="blank"></div></li>
                        <li><a href="signout.php"><span>Sign Out</span></a></li>
                    </ul>
                </div>
                <div id="logoWrap"><a href="dashboard.php"><h1>Brops Dox</h1></a></div>
                <!--<h2><a href="dashboard.html">Dashboard</a></h2>-->
                <div id="leftPanel">
                    <div class="about">
                        <h2>Directory</h2>
                        <h3>Folder's Name</h3>

                        <div id="atas">
                            <input name="fileupload" type="file" />
                            <button>upload</button>
                        </div>
                        </br>
                        <div id="bawah">
                            <table id="dir">
                                <tr>
                                    <th>File Name</th>
                                    <th>File Type</th>
                                    <th>File Size</th>
                                    <th>Date Modified</th>
                                </tr>
                                <tr class="alt">
                                    <td>...</td>
                                    <td>...</td>
                                    <td>...</td>
                                    <td>...</td>
                                </tr>
                                <tr class="alt">
                                    <td>Prank</td>
                                    <td>Image</td>
                                    <td>...</td>
                                    <td>Saturday, April 26, 2008</td>
                                </tr>
                            </table>
                            
                            <?php
            include "connector.php";

            $sql = "SELECT * FROM user";
            $result = mysql_query($sql, $con);

            while ($row = mysql_fetch_array($result)) {
                //echo $row['username'];
                //echo "</br>";
                //echo $row['password'];
                //echo "</br>";
                //echo $row['email'];
                //echo "</br>";
            }
            ?>
                        </div>

                    </div>
                </div>
    </body>
</html>
